package com.fms.controllers.form6;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;


import java.io.IOException;
import java.io.Reader;
import java.sql.SQLException;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.Model;

public class Uniforms extends WebPage{
	
	Reader reader = Resources.getResourceAsReader("sqlMapConfig.xml");
	SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
	
	private Model typeOfUniformModel = new Model();
	private Model nameModel = new Model();
	private Model dateReceivedModel = new Model();
	private Model preparedByModel = new Model();
	private Model notedByModel = new Model();
	
	public Uniforms () throws IOException, SQLException{
		
		TextField typeOfUniform = new TextField ("typeOfUniform",typeOfUniformModel);
		TextField name= new TextField ("name",nameModel);
		TextField dateReceived = new TextField ("dateReceived",dateReceivedModel);
		TextField preparedBy = new TextField ("preparedBy",preparedByModel);
		TextField notedBy = new TextField ("notedBy",notedByModel);
	}

}
